package com.eunion.web.cms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * 视频.
 */
@Entity
@Table(name = "t_news_center")
@NamedQuery(name = "TNewsCenter.findAll", query = "SELECT t FROM TNewsCenter t")
public class TNewsCenter {

	@Id
	private int id;

	private String title;

	private String filepath;

	private int type;

	private Date updatetime;

	private Date createtime;

	private String upname;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getUpname() {
		return upname;
	}

	public void setUpname(String upname) {
		this.upname = upname;
	}

	public TNewsCenter(int id, String title, String filepath, int type, Date updatetime, Date createtime, String upname) {
		super();
		this.id = id;
		this.title = title;
		this.filepath = filepath;
		this.type = type;
		this.updatetime = updatetime;
		this.createtime = createtime;
		this.upname = upname;
	}

	public TNewsCenter() {
		super();
	}

	@Override
	public String toString() {
		return "TNewsCenter [id=" + id + ", title=" + title + ", filepath=" + filepath + ", type=" + type + ", updatetime=" + updatetime + ", createtime=" + createtime + ", upname=" + upname + "]";
	}

}
